package com.mydemo.design_pattern.action_type.state_pattern;

import com.mydemo.design_pattern.action_type.state_pattern.impl.LeadState;

/**
 * <p></p >
 *
 * @author liming1
 * @version $Id: TestDemo, v1.0 2019-09-24 10:43 liming1 Exp $
 */
public class TestDemo {
    public static void main(String[] args) {
        Context context = new Context(new LeadState());
        context.request();
        System.out.println("=================");

        context.setEnd(false);
        context.setMsg("生病了");
        context.request();
    }
}
